﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FireHydrantPage.aspx.cs" Inherits="WaterApp.QueryReport.FireHydrantPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>消火栓巡检</title>
    <link href="../Styles/if.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManage1" runat="server"></asp:ScriptManager>
    <div>
    <div style="width:100%; background-color: #E0E0E0; height:30px; 
                font-family:宋体; font-size:12px; font-weight:bold; line-height:30px;">
      查询和报表=>消火栓巡检
    </div>
      <table>
         <tr>
           <td style="text-align:right;">地址</td>
           <td style="text-align:left;"><asp:TextBox ID="tbaddress" runat="server" Width="180px"></asp:TextBox> </td>
        </tr>
        <tr>
           <td style="text-align:right;">巡检人</td>
           <td colspan="3" style="text-align:left;"><asp:TextBox ID="tbinspman" runat="server" Width="180px"></asp:TextBox> </td>          
         </tr>
        <tr>
           <td style="text-align:right;">巡检时间</td>
           <td style="text-align:left;"><asp:TextBox ID="tbinspdt" runat="server" Width="180px"></asp:TextBox>
               <asp:ImageButton runat="server" ID="imgcsrq" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                                             AlternateText="Click to show calendar" />
           <asp:LinkButton ID="Inspection" runat="server" 
                             OnClick="Inspectionfound_Click"
                             Width="80px" CssClass="linkbutton" Text="查询"></asp:LinkButton>                                             
                                             </td>
         </tr>                  
      </table>
      <asp:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="tbinspdt" 
                                              PopupButtonID="imgcsrq" Format="yyyy/MM/dd"  />  
    </div>
    <div>
       <div style="width: 95%; padding: 2px 0px 0px 0px;">
                    <asp:GridView ID="Gvfirehy" runat="server" Width="100%" AutoGenerateColumns="false"
                              AllowPaging="true" PageSize="15" >
                    <HeaderStyle CssClass="poputopbj" Font-Names="Arial,宋体" Font-Size="12px" /> 
                    <SelectedRowStyle BackColor = "#CCCCCC" ForeColor="black" />
                    <AlternatingRowStyle BackColor="#F7F7F7"></AlternatingRowStyle>
                    <PagerStyle ForeColor="Black" />  
                    <Columns>
                      <asp:BoundField DataField="MRNO" HeaderText="序号" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="80px"></asp:BoundField>                       
                      <asp:BoundField DataField="LOCATION" HeaderText="地址" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField> 
                      <asp:BoundField DataField="DIAMETER" HeaderText="口径" 
                                      ItemStyle-HorizontalAlign="right"></asp:BoundField>
                      <asp:BoundField DataField="FireHydrantState" HeaderText="消火栓现状" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField> 
                      <asp:BoundField DataField="InspectionEmp" HeaderText="巡检人" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                        
                      <asp:BoundField DataField="InspectionDt" HeaderText="巡检时间" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="120px" ></asp:BoundField> 
                      <asp:BoundField DataField="ProcessQk" HeaderText="处理情况" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                                                                                                                                                   
                      <asp:TemplateField ItemStyle-Width="30px">
                         <ItemTemplate>
                              <asp:LinkButton ID="linkSel" runat="server" ForeColor="Black" 
                                              CommandName="Select" Text="选择">
                              </asp:LinkButton>
                         </ItemTemplate>
                      </asp:TemplateField>          
                    </Columns>
                   </asp:GridView>
                 </div>
                 <div>
                   <asp:Label ID="lbmessage" runat="server" Width="300px" ForeColor="Red"></asp:Label>
                 </div>
    </div>
    </form>
</body>
</html>
